﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Salon
{
    public class Client
    {
        public int Id { get; set; }

        public String Name { get; set; }

        public String Country { get; set; }

        public String City { get; set; }

        public String Street { get; set; }

        public String Zip { get; set; }

        public String FlatNumber { get; set; }

        public override bool Equals(object obj)
        {
            Client u2 = obj as Client;
            if (u2 == null)
                return false;
            
            if (this.Id.Equals(u2.Id))
                return true;

            return false;
        }

        public override string ToString()
        {
            return this.Name;
        }

        public override int GetHashCode()
        {
            return Id.GetHashCode();
        }
    }
}
